package com.xjrh.traintravel.collector.common;

/**
 * 调用服务异常类
 *
 * @author snps
 * @create 2022-04-12 8:44
 * @describe
 **/
public class CallServiceException extends RuntimeException {

    /**
     * 错误提示（对外显示）
     */
    public String message;

    /**
     * 凑五明细（内部调试用）
     */
    private String detailMessage;

    /**
     * 空构造方法，避免反序列化问题
     */
    public CallServiceException() {}

    public CallServiceException(String message) {
        this.message = message;
    }


    /*********************************************
     * Getter and Setter
     */
    public String getMessage() {
        return message;
    }

    public CallServiceException setMessage(String message) {
        this.message = message;
        return this;
    }

    public String getDetailMessage() {
        return detailMessage;
    }

    public CallServiceException setDetailMessage(String detailMessage) {
        this.detailMessage = detailMessage;
        return this;
    }

}
